package com.itheima.web.mapper.pms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.pms.PmsProductAttribute;
import com.itheima.vo.pms.PmsProductAttributeCategory;
import com.itheima.vo.pms.ProductAttributeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductAttributeMapper extends BaseMapper<PmsProductAttribute> {


    List<PmsProductAttribute> pageInfo(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize, @Param("cid") int cid, @Param("type") int type);

    List<ProductAttributeDto> selectByProductCategoryId(Integer productCategoryId);

    List<PmsProductAttribute> pageInfoBy(@Param("cid") Integer cid,@Param("type") Integer type);
}
